package com.young.ysepay.service.impl;

import com.alibaba.fastjson.JSON;
import com.young.ysepay.connector.SysconfigFeign;
import com.young.ysepay.dto.YsPayDTO;
import com.young.ysepay.service.YsBusinessPramService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: WANGNING
 * @Email wyn20140226@aliyun.com
 * @Date: 2019/6/4 15:51
 * @Des 银盛业务参数配置读取
 */
@Service
public class YsBusinessPramImpl implements YsBusinessPramService {
    @Autowired
    private SysconfigFeign sysconfigFeign;

    @Override
    public YsPayDTO ysBusinessPram() {
        String businessPramJson=this.sysconfigFeign.getYSBusiness();
        YsPayDTO ysPayDTO=JSON.parseObject(businessPramJson, YsPayDTO.class);
        return ysPayDTO;
    }
}
